package com.rayson.yututu.model.req.user;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * Author: rayson
 * Description: 用户注册参数
 * Version: 1.0
 * Date: 2024-12-18 20:18
 */
@Data
public class UserRegistReq implements Serializable {

    private static final long serialVersionUID = -1385423533900194978L;

    /**
     * 用户名
     */
    @Length(min = 4, message = "用户名不能小于4位")
    private String username;

    /**
     * 密码
     */
    @Length(min = 8, message = "密码不能小于8位")
    private String password;

    /**
     * 确认密码
     */
    @NotBlank(message = "确认密码不能为空")
    private String checkPassword;

}
